<extend name="Public/layout"/>

<block name="body">
    <div class="title">
        <h2>{$meta_title}</h2>
    </div>
    <duv class="row">
        <form action="__SELF__" method="post" class="form">
            <div class="form-group">
                <label class="item-label">上级部门<span class="check-tips">（所属的上级部门）</span></label>
                <div class="controls">
                    <select name="pid" class="form-control">
                        <volist name="all_group" id="group">
                            <option value="{$group.id}" 
                                <php>if($group['id'] == $info['pid']) echo 'selected="selected"';</php> >
                                {$group.title_show}
                            </option>
                        </volist>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="item-label">部门名称<span class="check-tips">（部门名称）</span></label>
                <div class="controls">
                    <input type="text" class="form-control" name="title" value="{$info.title|default=''}">
                </div>
            </div>
            <div class="form-group">
                <label class="item-label">图标<span class="check-tips">（部门图标）</span></label>
                <div class="controls">
                    <select class="chosen-icon" name="icon" data-value="{$info.icon|default=''}"><select>
                </div>
            </div>
            <div class="form-group">
                <label class="item-label">权限<span class="check-tips">（权限列表）</span></label>
                <div class="controls">
                    <input type="text" class="form-control" name="auth" value="{$info.auth|default=''}">
                </div>
            </div>
            <div class="form-group">
                <label class="item-label">排序<span class="check-tips">（用于分组显示的顺序）</span></label>
                <div class="controls">
                    <input type="text" class="form-control" name="sort" value="{$info.sort|default=0}">
                </div>
            </div>
            <div class="form-group">
                <input type="hidden" name="id" value="{$info.id|default=''}">
                <button class="btn btn-primary submit ajax-post" type="submit" target-form="form">确 定</button>
                <button class="btn return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>
</block>
